package com.uchonor.api.core.template;

/**
 * 模板转换为字符串
 */

import freemarker.template.TemplateException;

import java.io.IOException;
import java.util.Map;

public abstract class AbstractTemplateEngine {
    /**
     * 模板引擎初始化
     */
    public abstract AbstractTemplateEngine init();

    public abstract String getTemplateStr(Map<String, Object> objectMap, String templatePath) throws IOException, TemplateException;
}
